//1) generalize all functions so they accept arguments and return types!
//2) find average rgb values after calc_rgb_array(arg)

package com.ashton;


import java.awt.Rectangle;

import javax.swing.*;

public class Screen {
	ImageClass image;
	public void setUpScreen(){
		JFrame frame=new JFrame();
		frame.setSize(2000, 2000);
		image=new ImageClass();
		frame.add(image);
		frame.setVisible(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	
	public static void main(String args[]){
		Screen s=new Screen();
		s.setUpScreen();
//		s.image.print_pixel_info(s.image.calc_rgb_array(new Mosaic_Rect(0, 0, 20, 20)));
//		s.image.create_sketch_image();		

		
//		s.image.set_tile_size(15, 16);
		int n=1;
		while (n>=1){
		try{
			Thread.sleep(5);
			n+=1;
			s.image.find_avg_colors(s.image.set_tile_size(n, n));

		}catch(Exception e){
			e.printStackTrace();
		}}
//		s.image.make_black();
//		s.image.print_all_pixel_info();

	}
}
